echo off
::echo %date%_%time%
set date_num=%date:~0,10%
set date_num=%date_num:-=%
set date_num=%date_num:/=%
set time_num=%time:~0,8%
set time_num=%time_num::=%
if "%time_num:~0,1%"==" " set "time_num=0%time_num:~1%"
echo on
set source=.\Objects\%1.hex
set target_folder=.\Objects\sort\
if not exist "%target_folder%" mkdir "%target_folder%"
copy "%source%" "%target_folder%%1_%date_num%_%time_num%.hex"

::cp .\%1\%1.hex .\%1\%1_%date_num%_%time_num%.hex
::cp .\%1\%1.bin  .\%1\%1_%date_num%_%time_num%.bin
::copy  .\Objects\%1.hex .\Objects\sort\%1_%date_num%_%time_num%.hex
echo file copied %target_folder%